<?php
/**
 * FacetArray
 *
 * @package converters
 * @author Keith
 **/
class FacetArray extends ConvertableObject
{
	/**
	 * is_valid
	 *
	 * @return boolean
	 * @author Keith
	 **/
	function is_valid($value=false)
	{
		if(!$value) $value = $this->value;
		
		if(
			!isset($value['head']) OR 
			!isset($value['fields']) OR
			!isset($value['head']['query']) OR 
			isset($value['head']['fields'])
			) return false;
		else return true;		
	}
} // END class FacetIndex
?>